#include <54func.h>
int main(int argc,char *argv[])
{
    //chdir:改变当前工作目录,由于进程之间的问题，其实根本改变不了当前的工作目录
    // ./chdir.c dir
    ARGS_CHECK(argc,2);
    printf("before chdir,cwd = %s\n",getcwd(NULL,0));
    int ret = chdir(argv[1]);
    ERROR_CHECK(ret,-1,"chdir");
    printf("after chdir,cwd = %s\n",getcwd(NULL,0));
    return 0;
}
